<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加英雄</title>
</head>
<body>
<h1 th:style="${null == error ? '': 'display:none'}">添加英雄信息</h1>
<h1 th:style="${null != error ? 'color:red': 'display:none'}" th:text="${error}"></h1>
<form method="post" action="/insert">
    <label>
        <span>英雄名称</span>
        <input name="name" type="text"><br/>
    </label>
    <label>
        <span>英雄类型</span>
        <input name="type" type="text"><br/>
    </label>
    <label>
        <span>英雄价格</span>
        <input name="price" type="number"><br/>
    </label>
    <button type="submit">提交</button>
</form>
</body>
</html>